home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / DragOverSP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.7 KB  |  99 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: DragOverSP.h,v $ $Revision: 1.33 $ $Date: 92/05/14 12:50:28 $ */
  6. /*
  7. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  8. #ifndef _XmDragOverSP_h
  9. #define _XmDragOverSP_h
  10.  
  11. #include <X11/Shell.h>
  12. #include <X11/ShellP.h>
  13. #include <Xm/XmP.h>
  14. #include <Xm/DragIconP.h>
  15. #include <Xm/DragOverS.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. #define DOExpose(do) \
  22.     ((XtClass(do))->core_class.expose) ((Widget)(do), NULL, NULL)
  23.  
  24. /* 
  25.  * DRAGOVER SHELL
  26.  */
  27. typedef struct 
  28. {
  29.     XtPointer                extension;
  30. } XmDragOverShellClassPart;
  31.  
  32. /* Full class record declaration */
  33.  
  34. typedef struct _XmDragOverShellClassRec 
  35. {
  36.     CoreClassPart         core_class;
  37.     CompositeClassPart         composite_class;
  38.     ShellClassPart         shell_class;
  39.     WMShellClassPart            wm_shell_class;
  40.     VendorShellClassPart     vendor_shell_class;
  41.     XmDragOverShellClassPart     dragOver_shell_class;
  42. } XmDragOverShellClassRec;
  43.  
  44. externalref XmDragOverShellClassRec xmDragOverShellClassRec;
  45.  
  46. typedef struct _XmBackingRec{
  47.     Position    x, y;
  48.     Pixmap    pixmap;
  49. }XmBackingRec, *XmBacking;
  50.  
  51. typedef struct _XmDragOverBlendRec{
  52.     XmDragIconObject        sourceIcon;    /* source icon */
  53.     Position            sourceX;    /* source location in blend */
  54.     Position            sourceY;    /* source location in blend */
  55.     XmDragIconObject        mixedIcon;    /* blended icon */
  56.     GC                gc;        /* appropriate depth */
  57. }XmDragOverBlendRec, *XmDragOverBlend;
  58.  
  59. typedef struct _XmDragOverShellPart{
  60.     Position            hotX;        /* current hotX */
  61.     Position            hotY;        /* current hotY */
  62.     unsigned char        cursorState;    /* current cursor state */
  63.     unsigned char        mode;
  64.     unsigned char        activeMode;
  65.  
  66.     Position            initialX;    /* initial hotX */
  67.     Position            initialY;    /* initial hotY */
  68.  
  69.     XmDragIconObject        stateIcon;    /* current state icon */
  70.     XmDragIconObject        opIcon;        /* current operation icon */
  71.  
  72.     XmDragOverBlendRec        cursorBlend;    /* cursor blending */
  73.     XmDragOverBlendRec        rootBlend;    /* pixmap or window blending */
  74.     Pixel            cursorForeground;
  75.     Pixel            cursorBackground;
  76.     Cursor            ncCursor;    /* noncached cursor */
  77.     Cursor            activeCursor;    /* the current cursor */
  78.  
  79.     XmBackingRec        backing;     /* backing store for pixdrag */
  80.     Pixmap            tmpPix;        /* temp storage for pixdrag */
  81.     Pixmap            tmpBit;        /* temp storage for pixdrag */
  82.     Boolean                     isVisible;    /* shell is visible */
  83. }XmDragOverShellPart;
  84.  
  85. typedef  struct _XmDragOverShellRec{
  86.     CorePart         core;
  87.     CompositePart     composite;
  88.     ShellPart         shell;
  89.     WMShellPart        wm;
  90.     VendorShellPart    vendor;
  91.     XmDragOverShellPart    drag;
  92. } XmDragOverShellRec;
  93.  
  94. #ifdef __cplusplus
  95. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  96. #endif
  97.  
  98. #endif /* _XmDragOverSP_h */
  99.